#include <pantheios/pantheios.hpp>              // Pantheios C++ main header
#include <pantheios/frontend.h>

#define DEBUG

PANTHEIOS_CALL(int) pantheios_fe_init(  void*   /* reserved */,   void**  ptoken)
{
	*ptoken = NULL;
	return 0;
}

PANTHEIOS_CALL(void) pantheios_fe_uninit(void* /* token */)
{}

PANTHEIOS_CALL(PAN_CHAR_T const*) pantheios_fe_getProcessIdentity(void* /* token */)
{
	return PANTHEIOS_LITERAL_STRING("_efs_");
}

PANTHEIOS_CALL(int) pantheios_fe_isSeverityLogged(  void*   /* token */
                                                ,   int     severity
                                                ,   int     /* backEndId */)
{
	#ifdef DEBUG
		return true;//severity <= s_severityCeiling;
	#else
		if (severity == pantheios::debug)
		{
			return false;
		}
		else
		{
			return true;
		}
	#endif
}
